// 密码校验规则: 密码需要由8-16个字符（必须包含字母、数字、特殊字符）组成
/* eslint-disable-next-line no-useless-escape */
export const PASSWORD_REGEX = /^(?=.*\d)(?=.*[A-Za-z])(?=.*[~`!@#$%^&*_'";:><,\|\?\.\-\+\=\[\]\(\)\{\}\/])([\w~`!@#$%^&*_'";:><,\|\?\.\-\+\=\[\]\(\)\{\}\/]{8,16})$/;
// 订单状态
export const ORDER_STATUS = {
    '0': '未付款',
    '101': '已取消',
    '201': '已付款',
    '300': '配货中',
    '301': '正在配送',
    '1': '已完成'
};
// 订单对应的字符
export const enum ORDER_ENUM {
    WAIT_PAY = '未付款',
    CANCEL = '已取消',
    PAY = '已付款',
    DONE = '已完成',
    READY = '配货中',
    SENDING = '运输中',
    REFUND = '已退款'
};

export const ORDER_STATUS_KEYS = {
    WAIT_PAY: 'WAIT_PAY',
    CANCEL: 'CANCEL',
    PAY: 'PAY',
    DONE: 'DONE',
    READY: 'READY',
    SENDING: 'SENDING',
    REFUND: 'REFUND' 
}

export const ORDER_TYPE = ['INSTORE', 'TAKEOUT', 'PICKUP']; // 堂食、外卖、自提

export const ABLED = {
    DISABLED: 0,
    ENABLED: 1
};

export const SHOP_TYPE = ['CATERING', 'OTHER']; // 餐饮、其它


export enum STATUS{
    DISABLED,
    ENABLED
}